-
Notifications
You must be signed in to change notification settings - Fork 272
Update STE UserTriggerDecision and UserModification events #4955
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1. add multiple fields in UserTriggerDecision event and UserModification event, 2. Update the latency calculation to reflect the latest definition 3. added some initial a/b testing changes for new auto-trigger UX
...are/aws/toolkits/jetbrains/services/codewhisperer/service/CodeWhispererAutoTriggerService.kt
Show resolved
Hide resolved
...ftware/aws/toolkits/jetbrains/services/codewhisperer/CodeWhispererCodeCoverageTrackerTest.kt
Outdated
Show resolved
Hide resolved
// sendUserModificationTelemetryToServiceAPI(acceptedSuggestion, 1.0) | ||
// Will remove this later when we truly don't need toolkit user modification telemetry anymore | ||
val document = runReadAction { | ||
FileDocumentManager.getInstance().getDocument(file) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can do this later, for simplicity, we should add document as a field of AcceptedSuggestionEntry. https://github.com/aws/aws-toolkit-jetbrains/blob/main/plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/editor/CodeWhispererEditorManager.kt#L56
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
private const val TEST_FEATURE_NAME = "testFeature" | ||
private const val DATA_COLLECTION_FEATURE = "IDEProjectContextDataCollection" | ||
const val CUSTOMIZATION_ARN_OVERRIDE_NAME = "customizationArnOverride" | ||
private const val NEW_AUTO_TRIGGER_UX = "newAutoTriggerUX" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could make these constants sealed data object
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
like
sealed interface Feature {
val id: String
sealed data object Feature1 { id: 'feat1'}
sealed data object Feature2 { id: 'feat2' }
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can do this later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
…ification events (#5766) 1. bring back UserModification SendTelemetryEvent and track acceptedCharacterCount and unmodifiedAcceptedCharacterCount. 2. combine some latency tracking to the session object JB PR reference: aws/aws-toolkit-jetbrains#4955 ## Problem ## Solution --- <!--- REMINDER: Ensure that your PR meets the guidelines in CONTRIBUTING.md --> License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
…ification events (aws#5766) 1. bring back UserModification SendTelemetryEvent and track acceptedCharacterCount and unmodifiedAcceptedCharacterCount. 2. combine some latency tracking to the session object JB PR reference: aws/aws-toolkit-jetbrains#4955 ## Problem ## Solution --- <!--- REMINDER: Ensure that your PR meets the guidelines in CONTRIBUTING.md --> License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
Types of changes
Description
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.